year=input()
month=input()
day=input()

print("{}-{}-{}".format(year,month,day))
print("{}/{}/{}".format(year,month,day))
print("{}年{}月{}日".format(year,month,day))